<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>循环结构</title>
</head>

<body>

  <div class="app">
    <p v-for='(v,k,i) in obj'>{{i}}--{{k}}--{{v}}</p>
  </div>

  <script src="../js/vue.js"></script>
  <script>
    var vm = new Vue({
      el: '.app',
      data: {
        obj:
          { id: 1, name: 'zhangsan', age: 12 },

      },
      methods: {

      }
    })
  </script>
</body>

</html>